<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>健康饮食 - 食谱详情</title>
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        /* 防止内容溢出 */
        body {
            overflow-x: hidden;
            max-width: 100vw;
        }
        /* 确保图片不溢出容器 */
        img {
            max-width: 100%;
        }
        /* 确保相似食谱推荐区域不会导致横向滚动 */
        .overflow-x-auto {
            scrollbar-width: thin;
            -ms-overflow-style: none;
        }
        .overflow-x-auto::-webkit-scrollbar {
            height: 4px;
        }
        .overflow-x-auto::-webkit-scrollbar-thumb {
            background-color: rgba(156, 163, 175, 0.5);
            border-radius: 2px;
        }
    </style>
</head>
<body class="bg-gray-100 text-gray-800 pb-20">
    <!-- 顶部图片 -->
    <div class="relative">
        <img src="https://images.unsplash.com/photo-1546069901-ba9599a7e63c" alt="藜麦蔬菜沙拉" class="w-full h-64 object-cover">
        <button class="absolute top-4 left-4 bg-black bg-opacity-30 text-white rounded-full p-2" onclick="history.back()">
            <i class="fas fa-arrow-left"></i>
        </button>
        <div class="absolute top-4 right-4 flex space-x-2">
            <button class="bg-black bg-opacity-30 text-white rounded-full p-2">
                <i class="fas fa-share-alt"></i>
            </button>
            <button class="bg-black bg-opacity-30 text-white rounded-full p-2">
                <i class="far fa-heart"></i>
            </button>
        </div>
    </div>

    <!-- 食谱标题和基本信息 -->
    <div class="bg-white px-4 py-4 -mt-6 rounded-t-3xl shadow-sm relative">
        <h1 class="text-2xl font-bold mb-2">藜麦蔬菜沙拉</h1>
        <div class="flex items-center mb-3">
            <div class="flex items-center text-yellow-500 mr-2">
                <i class="fas fa-star"></i>
                <i class="fas fa-star"></i>
                <i class="fas fa-star"></i>
                <i class="fas fa-star"></i>
                <i class="fas fa-star-half-alt"></i>
            </div>
            <span class="text-sm text-gray-500">4.5 (124人评价)</span>
        </div>

        <div class="flex justify-between text-sm mb-4">
            <div class="flex flex-col items-center">
                <i class="fas fa-fire-alt text-orange-500 mb-1"></i>
                <span>320</span>
                <span class="text-xs text-gray-500">千卡</span>
            </div>
            <div class="flex flex-col items-center">
                <i class="fas fa-clock text-blue-500 mb-1"></i>
                <span>15</span>
                <span class="text-xs text-gray-500">分钟</span>
            </div>
            <div class="flex flex-col items-center">
                <i class="fas fa-signal text-green-500 mb-1"></i>
                <span>简单</span>
                <span class="text-xs text-gray-500">难度</span>
            </div>
            <div class="flex flex-col items-center">
                <i class="fas fa-utensils text-purple-500 mb-1"></i>
                <span>2</span>
                <span class="text-xs text-gray-500">份</span>
            </div>
        </div>

        <div class="flex flex-wrap gap-2 mb-4">
            <span class="bg-green-100 text-green-800 text-xs px-2 py-1 rounded">高蛋白</span>
            <span class="bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded">低脂</span>
            <span class="bg-yellow-100 text-yellow-800 text-xs px-2 py-1 rounded">高纤维</span>
            <span class="bg-red-100 text-red-800 text-xs px-2 py-1 rounded">抗氧化</span>
            <span class="bg-purple-100 text-purple-800 text-xs px-2 py-1 rounded">素食</span>
        </div>

        <p class="text-gray-600 text-sm">这款充满活力的沙拉融合了藜麦的蛋白质和各种新鲜蔬菜的营养，酸甜的柑橘调味料增添了清爽口感，是健康饮食的理想选择。</p>
    </div>

    <!-- 营养成分 -->
    <div class="bg-white px-4 py-4 mt-2 shadow-sm">
        <h2 class="text-lg font-semibold mb-3">营养成分</h2>
        <div class="flex justify-between mb-2">
            <span class="text-sm">热量</span>
            <span class="text-sm font-medium">320 千卡</span>
        </div>
        <div class="grid grid-cols-2 gap-y-2 gap-x-4">
            <div class="flex justify-between">
                <span class="text-sm">蛋白质</span>
                <span class="text-sm">12g</span>
            </div>
            <div class="flex justify-between">
                <span class="text-sm">碳水化合物</span>
                <span class="text-sm">42g</span>
            </div>
            <div class="flex justify-between">
                <span class="text-sm">脂肪</span>
                <span class="text-sm">10g</span>
            </div>
            <div class="flex justify-between">
                <span class="text-sm">纤维</span>
                <span class="text-sm">8g</span>
            </div>
            <div class="flex justify-between">
                <span class="text-sm">糖</span>
                <span class="text-sm">4g</span>
            </div>
            <div class="flex justify-between">
                <span class="text-sm">钠</span>
                <span class="text-sm">180mg</span>
            </div>
        </div>
        <button class="w-full mt-3 text-green-600 flex items-center justify-center">
            <span>查看完整营养信息</span>
            <i class="fas fa-chevron-down ml-1"></i>
        </button>
    </div>

    <!-- 材料清单 -->
    <div class="bg-white px-4 py-4 mt-2 shadow-sm">
        <h2 class="text-lg font-semibold mb-3">材料清单 <span class="text-sm font-normal text-gray-500">(2人份)</span></h2>
        
        <!-- 主料 -->
        <h3 class="text-base font-medium mb-2">主料</h3>
        <div class="space-y-3 mb-4">
            <div class="flex justify-between items-center">
                <div class="flex items-center">
                    <img src="https://images.unsplash.com/photo-1586201375761-83865001e8ac" alt="藜麦" class="w-10 h-10 object-cover rounded-full mr-3">
                    <span>藜麦</span>
                </div>
                <span class="text-sm">100g</span>
            </div>
            <div class="flex justify-between items-center">
                <div class="flex items-center">
                    <img src="https://images.unsplash.com/photo-1557844352-761f2deb63b4" alt="黄瓜" class="w-10 h-10 object-cover rounded-full mr-3">
                    <span>黄瓜</span>
                </div>
                <span class="text-sm">1根</span>
            </div>
            <div class="flex justify-between items-center">
                <div class="flex items-center">
                    <img src="https://images.unsplash.com/photo-1592924357228-91a4daadcfea" alt="西红柿" class="w-10 h-10 object-cover rounded-full mr-3">
                    <span>西红柿</span>
                </div>
                <span class="text-sm">2个</span>
            </div>
            <div class="flex justify-between items-center">
                <div class="flex items-center">
                    <img src="https://images.unsplash.com/photo-1583687355032-89b902b7335f" alt="牛油果" class="w-10 h-10 object-cover rounded-full mr-3">
                    <span>牛油果</span>
                </div>
                <span class="text-sm">1个</span>
            </div>
            <div class="flex justify-between items-center">
                <div class="flex items-center">
                    <img src="https://images.unsplash.com/photo-1615485290382-441e4d049cb5" alt="鸡胸肉" class="w-10 h-10 object-cover rounded-full mr-3">
                    <span>鸡胸肉</span>
                </div>
                <span class="text-sm">100g (可选)</span>
            </div>
        </div>
        
        <!-- 调料 -->
        <h3 class="text-base font-medium mb-2">调料</h3>
        <div class="space-y-3">
            <div class="flex justify-between items-center">
                <div class="flex items-center">
                    <img src="https://images.unsplash.com/photo-1620625515032-6ed0c1790c75" alt="橄榄油" class="w-10 h-10 object-cover rounded-full mr-3">
                    <span>特级初榨橄榄油</span>
                </div>
                <span class="text-sm">2勺</span>
            </div>
            <div class="flex justify-between items-center">
                <div class="flex items-center">
                    <img src="https://images.unsplash.com/photo-1600628421055-4d30de868b8f" alt="柠檬" class="w-10 h-10 object-cover rounded-full mr-3">
                    <span>柠檬汁</span>
                </div>
                <span class="text-sm">1勺</span>
            </div>
            <div class="flex justify-between items-center">
                <div class="flex items-center">
                    <img src="https://images.unsplash.com/photo-1586444248902-2f64eddc13df" alt="盐" class="w-10 h-10 object-cover rounded-full mr-3">
                    <span>海盐</span>
                </div>
                <span class="text-sm">少许</span>
            </div>
            <div class="flex justify-between items-center">
                <div class="flex items-center">
                    <img src="https://images.unsplash.com/photo-1615887627927-02f91471e1d7" alt="黑胡椒" class="w-10 h-10 object-cover rounded-full mr-3">
                    <span>黑胡椒</span>
                </div>
                <span class="text-sm">少许</span>
            </div>
        </div>
        
        <button class="w-full mt-4 flex items-center justify-center py-2 border border-green-600 text-green-600 rounded-lg">
            <i class="fas fa-shopping-basket mr-2"></i>
            <span>添加全部食材到购物清单</span>
        </button>
    </div>

    <!-- 烹饪步骤 -->
    <div class="bg-white px-4 py-4 mt-2 shadow-sm">
        <h2 class="text-lg font-semibold mb-3">烹饪步骤</h2>
        
        <!-- 步骤1 -->
        <div class="mb-4">
            <div class="flex items-start mb-2">
                <div class="bg-green-600 text-white rounded-full w-6 h-6 flex items-center justify-center flex-shrink-0 mt-1 mr-3">
                    <span>1</span>
                </div>
                <p>将藜麦放入锅中，加入2倍量的水，煮沸后转小火煮10-15分钟，直到水被吸收且藜麦变软。</p>
            </div>
            <img src="https://images.unsplash.com/photo-1586201375761-83865001e8ac" alt="煮藜麦" class="w-full h-48 object-cover rounded-lg">
        </div>
        
        <!-- 步骤2 -->
        <div class="mb-4">
            <div class="flex items-start mb-2">
                <div class="bg-green-600 text-white rounded-full w-6 h-6 flex items-center justify-center flex-shrink-0 mt-1 mr-3">
                    <span>2</span>
                </div>
                <p>将黄瓜、西红柿切成小块，牛油果去皮切成薄片。如果使用鸡胸肉，将鸡胸肉切成小块并煎熟。</p>
            </div>
            <img src="https://images.unsplash.com/photo-1537788995400-507305f2c9dc" alt="切蔬菜" class="w-full h-48 object-cover rounded-lg">
        </div>
        
        <!-- 步骤3 -->
        <div class="mb-4">
            <div class="flex items-start mb-2">
                <div class="bg-green-600 text-white rounded-full w-6 h-6 flex items-center justify-center flex-shrink-0 mt-1 mr-3">
                    <span>3</span>
                </div>
                <p>将橄榄油、柠檬汁、海盐和黑胡椒混合，制作简单的调味汁。</p>
            </div>
            <img src="https://images.unsplash.com/photo-1472476443507-c7a5948772fc" alt="制作调味汁" class="w-full h-48 object-cover rounded-lg">
        </div>
        
        <!-- 步骤4 -->
        <div>
            <div class="flex items-start mb-2">
                <div class="bg-green-600 text-white rounded-full w-6 h-6 flex items-center justify-center flex-shrink-0 mt-1 mr-3">
                    <span>4</span>
                </div>
                <p>在大碗中混合藜麦、切好的蔬菜和鸡肉（如果使用），淋上调味汁，轻轻拌匀即可食用。</p>
            </div>
            <img src="https://images.unsplash.com/photo-1546069901-ba9599a7e63c" alt="拌好的沙拉" class="w-full h-48 object-cover rounded-lg">
        </div>
    </div>

    <!-- 烹饪小贴士 -->
    <div class="bg-white px-4 py-4 mt-2 shadow-sm">
        <h2 class="text-lg font-semibold mb-3">烹饪小贴士</h2>
        <div class="space-y-3">
            <div class="flex">
                <i class="fas fa-lightbulb text-yellow-500 mt-1 mr-3"></i>
                <p class="text-sm">藜麦煮好后，可以用冷水冲洗，这样口感会更好，不会有粘腻感。</p>
            </div>
            <div class="flex">
                <i class="fas fa-lightbulb text-yellow-500 mt-1 mr-3"></i>
                <p class="text-sm">可以提前一天煮好藜麦，保存在冰箱中，第二天直接使用。</p>
            </div>
            <div class="flex">
                <i class="fas fa-lightbulb text-yellow-500 mt-1 mr-3"></i>
                <p class="text-sm">可以根据个人口味添加其他蔬菜，如甜椒、洋葱或香菜等。</p>
            </div>
            <div class="flex">
                <i class="fas fa-lightbulb text-yellow-500 mt-1 mr-3"></i>
                <p class="text-sm">如果需要增加口感，可以加入一些烤松子或核桃碎。</p>
            </div>
        </div>
    </div>

    <!-- 用户评价 -->
    <div class="bg-white px-4 py-4 mt-2 shadow-sm mb-4">
        <div class="flex justify-between items-center mb-3">
            <h2 class="text-lg font-semibold">用户评价</h2>
            <span class="text-sm text-green-600">124条评价</span>
        </div>
        
        <!-- 评价1 -->
        <div class="border-b border-gray-100 pb-3 mb-3">
            <div class="flex justify-between items-center mb-2">
                <div class="flex items-center">
                    <img src="https://randomuser.me/api/portraits/women/12.jpg" alt="用户头像" class="w-8 h-8 rounded-full mr-2">
                    <div>
                        <div class="font-medium">李小明</div>
                        <div class="text-xs text-gray-500">2023-05-10</div>
                    </div>
                </div>
                <div class="flex text-yellow-500">
                    <i class="fas fa-star"></i>
                    <i class="fas fa-star"></i>
                    <i class="fas fa-star"></i>
                    <i class="fas fa-star"></i>
                    <i class="fas fa-star"></i>
                </div>
            </div>
            <p class="text-sm text-gray-600">非常美味健康的一道沙拉，我加了一些烤鸡胸肉，蛋白质含量更高了。每次健身后就吃这个，营养又不会摄入过多热量。</p>
        </div>
        
        <!-- 评价2 -->
        <div>
            <div class="flex justify-between items-center mb-2">
                <div class="flex items-center">
                    <img src="https://randomuser.me/api/portraits/men/33.jpg" alt="用户头像" class="w-8 h-8 rounded-full mr-2">
                    <div>
                        <div class="font-medium">张小华</div>
                        <div class="text-xs text-gray-500">2023-05-08</div>
                    </div>
                </div>
                <div class="flex text-yellow-500">
                    <i class="fas fa-star"></i>
                    <i class="fas fa-star"></i>
                    <i class="fas fa-star"></i>
                    <i class="fas fa-star"></i>
                    <i class="far fa-star"></i>
                </div>
            </div>
            <p class="text-sm text-gray-600">第一次尝试藜麦，步骤很简单，也很容易操作。唯一的问题是藜麦本身有点淡，需要更多的调味。下次会试试加入更多香料。</p>
        </div>
        
        <button class="w-full mt-4 text-green-600 flex items-center justify-center">
            <span>查看全部评价</span>
            <i class="fas fa-chevron-right ml-1"></i>
        </button>
    </div>

    <!-- 相似食谱推荐 -->
    <div class="bg-white px-4 py-4 mt-2 shadow-sm mb-20">
        <div class="flex justify-between items-center mb-3">
            <h2 class="text-lg font-semibold">相似食谱</h2>
            <a href="#" class="text-sm text-green-600">查看更多</a>
        </div>
        
        <div class="flex overflow-x-auto space-x-4 pb-2">
            <!-- 推荐食谱1 -->
            <div class="bg-white rounded-lg shadow-sm w-56 flex-shrink-0">
                <img src="https://images.unsplash.com/photo-1512621776951-a57141f2eefd" alt="蔬菜沙拉" class="w-full h-32 object-cover rounded-t-lg">
                <div class="p-3">
                    <h3 class="font-medium mb-1">彩虹蔬菜沙拉</h3>
                    <div class="flex items-center text-xs text-gray-500 mb-2">
                        <i class="fas fa-fire-alt mr-1"></i>
                        <span>280千卡</span>
                        <span class="mx-2">|</span>
                        <i class="fas fa-clock mr-1"></i>
                        <span>10分钟</span>
                    </div>
                    <div class="flex">
                        <span class="bg-green-100 text-green-800 text-xs px-2 py-1 rounded mr-1">低热量</span>
                        <span class="bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded">素食</span>
                    </div>
                </div>
            </div>
            
            <!-- 推荐食谱2 -->
            <div class="bg-white rounded-lg shadow-sm w-56 flex-shrink-0">
                <img src="https://images.unsplash.com/photo-1540420773420-3366772f4999" alt="地中海鹰嘴豆沙拉" class="w-full h-32 object-cover rounded-t-lg">
                <div class="p-3">
                    <h3 class="font-medium mb-1">地中海鹰嘴豆沙拉</h3>
                    <div class="flex items-center text-xs text-gray-500 mb-2">
                        <i class="fas fa-fire-alt mr-1"></i>
                        <span>350千卡</span>
                        <span class="mx-2">|</span>
                        <i class="fas fa-clock mr-1"></i>
                        <span>15分钟</span>
                    </div>
                    <div class="flex">
                        <span class="bg-green-100 text-green-800 text-xs px-2 py-1 rounded mr-1">高蛋白</span>
                        <span class="bg-purple-100 text-purple-800 text-xs px-2 py-1 rounded">地中海</span>
                    </div>
                </div>
            </div>
            
            <!-- 推荐食谱3 -->
            <div class="bg-white rounded-lg shadow-sm w-56 flex-shrink-0">
                <img src="https://images.unsplash.com/photo-1529059997568-3d847b1154f0" alt="亚洲风味金枪鱼沙拉" class="w-full h-32 object-cover rounded-t-lg">
                <div class="p-3">
                    <h3 class="font-medium mb-1">亚洲风味金枪鱼沙拉</h3>
                    <div class="flex items-center text-xs text-gray-500 mb-2">
                        <i class="fas fa-fire-alt mr-1"></i>
                        <span>380千卡</span>
                        <span class="mx-2">|</span>
                        <i class="fas fa-clock mr-1"></i>
                        <span>20分钟</span>
                    </div>
                    <div class="flex">
                        <span class="bg-green-100 text-green-800 text-xs px-2 py-1 rounded mr-1">高蛋白</span>
                        <span class="bg-red-100 text-red-800 text-xs px-2 py-1 rounded">辣味</span>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- 底部固定操作栏 -->
    <div class="fixed bottom-0 left-0 right-0 bg-white border-t border-gray-200 p-4 flex justify-between items-center">
        <button class="flex-1 mr-3 py-3 bg-green-600 text-white rounded-lg font-medium">
            添加到今日记录
        </button>
        <button class="py-3 px-4 border border-green-600 text-green-600 rounded-lg font-medium">
            <i class="fas fa-shopping-basket"></i>
        </button>
    </div>
</body>
</html> 